﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace QunYing.Common
{
  public  class GlobalInfo
    {
      /// <summary>
      /// 所有服务的基地址
      /// </summary>
      public static readonly string ServiceBaseAddr = "net.tcp://localhost:19067/Service/";
      /// <summary>
      /// 是否开启地址
      /// </summary>
      public static readonly string ServiceIsOnline = "IsOnline";

      /// <summary>
      /// 商品图片操作服务地址
      /// </summary>
      public const string ServiceImageOperationGoods =  "ImageOperaGoods";

      /// <summary>
      /// 会员地址图片操作服务地址
      /// </summary>
      public const string ServiceImageOperationVip = "ImageOperaVipAddr";

      /// <summary>
      /// 图片操作服务
      /// </summary>
      public const string ServiceImageOperationDealerInfo = "ImageOperaDealerinfo";

      /// <summary>
      /// 接收告警信息处理服务
      /// </summary>
      public const string ServiceWarnInfoReceived = "WarnInfoReceived";

      /// <summary>
      /// 接收订单信息处理服务
      /// </summary>
      public const string ServiceOrderInfoReceived = "OrderInfoReceived";

      /// <summary>
      /// 告警信息处理
      /// </summary>
      public const string ServiceWarnInfoProcess = "ServicWarnInfoProcess";

      /// <summary>
      /// 订单信息处理
      /// </summary>
      public const string ServiceOrderInfoProcess = "ServicOrderInfoProcess";

      /// <summary>
      /// 图片文件夹
      /// </summary>
      public static string ImageForlderBasePath = @"D:\Images\";
      /// <summary>
      /// WEB图片地址
      /// </summary>
      public static string ImageWebPath = @"D:\RuiMeiWeb\Pictures\";
      /// <summary>
      /// 图片相对地址
      /// </summary>
      public static string ImageRelativePath = @"Pictures\";
      /// <summary>
      /// 会员地址图片文件夹
      /// </summary>
      public static string FolderVipAddr = ImageForlderBasePath+@"VipAddr\";

      public static string FolderDealer = ImageForlderBasePath = @"Dealer\";

      static GlobalInfo()
      {
          ServiceBaseAddr = ConfigurationManager.AppSettings["ServiceBaseAddr"];
      }
    }
}
